import React, { Component } from 'react'
import {withRouter} from 'react-router-dom'

import './search.css'


class search extends Component {

    searchClick=(params) => {
        this.props.history.push('/searchCenter')
    }
    
    render() {
        return (
            <div className="search">
                <button onClick={this.searchClick}>搜索</button>
            </div>
        )
    }
}

export default withRouter(search)